package com.example.ivory.accountbook.Activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.example.ivory.accountbook.R;
import com.example.ivory.accountbook.uilt.TittleManager;

/**
 * Created by Ivory on 2016/8/27.
 */
public class Export_data extends Activity implements View.OnClickListener {
    private TittleManager tittleManager_ex_da;
    private Button book;
    private Button date;
    private EditText email_adress;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_export_data);

        tittleManager_ex_da=new TittleManager(this);
        tittleManager_ex_da.setTitleStyle(TittleManager.TitleStyle.ONLY_BACK,"导出数据");

        initView();
        initEvents();
    }

    public void initView() {

        book = (Button) findViewById(R.id.book);
        date = (Button) findViewById(R.id.date);
        email_adress = (EditText) findViewById(R.id.email_adress);
    }

    public void initEvents() {
        book.setOnClickListener(this);
        date.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.book:
                Toast.makeText(Export_data.this,"选择需要导出的账本",Toast.LENGTH_LONG).show();
                break;
            case R.id.date:
                Toast.makeText(Export_data.this,"选择需要导出的日期",Toast.LENGTH_LONG).show();
                break;
        }
    }
}
